<div class='fui-page fui-page-current'>
	<div class='fui-content member-page'>
			<div style="margin:0.5rem;">
					<div class="memlogo-area" style="background: #55bd47;">
						<div class="memlogo">
							<img ng-src="{{tomedia(pagedata.member.avatar) || '../core/resource/images/gw-user.png'}}">
						</div>
						<div class="name">{{pagedata.member.nickname || '匿名'}}</div>
						<br>
						<div class="name">{{pagedata.member.mobile || '无手机号'}}</div>
						<div class="bot">
							<div class="jy-2" style="width:40%;">
							<h5>有效释放值</h5>
							<h2 style="margin-top:0">{{pagedata.member.sffee || '0.00'}}</h2>
							</div>
							<div class="jy-2" style="width:60%;margin-top:1rem">								
								<span class="r-f label label-info" style="font-size:0.65rem;background: none;border: 1px solid #fff;color:#fff;" href="javascript:;" ng-click="pagedata.showzhuan=true"><i class="icon icon-qiehuan"></i> 点击兑换</span>
							</div>
						</div>
					</div>
			</div>
			<div style="padding:0 0.5rem">
			<div ng-if="pagedata.tips" class="tips tips-yellow">
				<i class="fa fa-bullhorn"></i> [<red>温馨提示</red>]：{{pagedata.tips}}
			</div>
			</div>
			<div style="padding:0 0.5rem">
			<div class="fui-tab fui-tab-danger">
				<a ng-class="{'external active':pagedata.params.type == '0'}" href="javascript:" ng-click="pagedata.params.type='0';tool.get_list('jy_nongfee/sifang/getlist/',true);">释放值明细</a>
				<a ng-class="{'external active':pagedata.params.type == '1'}" href="javascript:" ng-click="pagedata.params.type='1';tool.get_list('jy_nongfee/sifang/getlist/',true);">释放值结算</a>
			</div>
			<div class='content-empty' ng-show="!pagedata.list || pagedata.list.length<=0">
				<i class='fa fa-comment-o'></i><br/>暂时没有任何记录!
			</div>
			<div class='fui-list-group container' ng-show="pagedata.list.length>0" >
				<div class="fui-list goods-item" ng-repeat="item in pagedata.list">
					<div class="fui-list-inner">
						<div class='title'>
							<span class="label label-success">{{item.typetitle}}</span>
							
						</div>
						<div class='gray'>{{item.createtime}}</div>
					</div>
					<div class='fui-list-angle'>
						<span class="red" style="margin-left:0.3rem">{{item.fee}}</span>
						<span class="gray" style="font-size:0.6rem;"> 个</span>
					</div>
				</div>
			</div>
			</div>
	</div>
</div>
<div ng-if="pagedata.showsifang" class="popup">
	<div class="popup-body">
		<div class="popup-center">
			<i class="closed icon icon-cuowu" ng-click="pagedata.showsifang=false"></i>
			 <div class='fui-cell-group fui-cell-group-o' style="margin:0.5rem;padding-top:0.5rem">
				<div class='fui-cell-title c'>您正在进行《释放昨日释放值》操作
				</div>
				<div class='fui-cell'>
					<div class='fui-cell-info' style="color:#333">
						<div>昨日团可释放值:</div>
						<div class="red">{{pagedata.member.sifang1 || '0.00'}}</div>
						<div class="gray">{{pagedata.teamsetting.sf_days||0}}天参与种植{{pagedata.teamsetting.sf_times ||0}}次才能释放</div>
					</div>
					<div class='fui-cell-remark noremark'>
						<span ng-if="pagedata.member.sifang1_can==1" class="label label-success">可释放</span>
						<span ng-if="pagedata.member.sifang1_can!=1" class="label label-danger">不可释放</span>
					</div>
				</div>
				<div class='fui-cell'>
					<div class='fui-cell-info' style="color:#333">
						<div>昨日区域代理可释放值:</div>
						<div class="red">{{pagedata.member.sifang2 || '0.00'}}</div>
					</div>
					<div class='fui-cell-remark noremark'>
						<span class="label label-success">可释放</span>
					</div>
				</div>
			</div>
			<div class="weui_btn_area" style="margin:2rem;">
				<a class='weui_btn weui_btn_primary' style="border-radius:1rem;" ng-click="post({},'getsifang')">确认释放</a>
			</div>
		</div>
	</div>
</div>
<div ng-if="pagedata.showzhuan" class="popup">
	<div class="popup-body">
		<div class="popup-center" style="background:#fc6d60">
			<style>
				input{ caret-color: #fff}
				.fui-cell-group .fui-cell .fui-cell-info  ::-webkit-input-placeholder{
					color: #fff
				}
				.fui-cell-group .fui-cell .fui-cell-info {
					font-size: 0.85rem;
					color: #fff;
				}
			</style>
			<i class="closed icon icon-cuowu" ng-click="pagedata.showzhuan=false"></i>
			 <div class='fui-cell-group fui-cell-group-o' style="margin:0.5rem;padding-top:0.5rem;background:#fc6d60">
				<div class='fui-cell-title c' style="color:#fff">您正在进行《{{pagedata.pluginset.cd_title}}{{pagedata.sf_rate}}:1兑换{{pagedata.cbtitle}}》操作
				</div>
				<div class='fui-cell'>
					<div class='fui-cell-label big' style='width:auto;color:#fff'><i class="icon icon-dixiaofei" style="font-size:0.8rem"></i></div>
					<div class='fui-cell-info'><input type='text' class='fui-input' placeholder="兑换额度" ng-model="pagedata.post.fee"></div>
				</div>
			</div>
			<div class="weui_btn_area" style="margin:2rem;">
				<a class='weui_btn weui_btn_primary' style="border-radius:1rem;background-color:#fff;color:#fc6d60" ng-click="post(pagedata.post,'post')">确认兑换</a>
			</div>
		</div>
	</div>
</div>
<div ng-include="sys_html('_footer')"></div>
<script>
scope.tool.get_list('jy_nongfee/sifang/getlist/',true);
scope.pagedata.scroll_bottom=function(){
	scope.tool.get_list('jy_nongfee/sifang/getlist/');
}
</script>